package com.ztc.ZtcRoute.bean;
import com.aqgj.Attachment.bean.Attachment;
import com.aqgj.util.BaseEntity;
import com.ztc.ZtcRouteAttachment.bean.ZtcRouteAttachment;
import com.ztc.ZtcRoutePrice.bean.ZtcRoutePrice;
import com.ztc.ZtcRouteSite.bean.ZtcRouteSite;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.List;

/**
 * 线路表
 */
@Entity
@Table(name = "ztc_route")
public class ZtcRoute implements BaseEntity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;//ä¸»é”®

    private String name;//线路名

    private String remark;//说明

    private java.lang.Integer status;//状态状态：0.未审核1.审核通过2.审核不通过

    private String examineRemark;//审核意见

    private String updateRemark;//修改意见

    private java.util.Date beginValidateTime;//有效期开始时间

    private java.util.Date endValidateTime;//有效期结束时间

    private java.util.Date addTime;//添加时间

    private String fkZtcTransportId;//公司id
    
    private String fkApplyUserId;//申请该线路的用户id
    
    private String applyUserName;
    
    private java.util.Date applyTime;//申请时间
    
    private String fkExamineUserId;//审核该线路的用户id

    private String examineUserName;//å®¡æ ¸äººå��ç§°

    private java.util.Date examineTime;//审核时间
    
    private String fkUpdateUserId;//修改

    private String updateUserName;//å®¡æ ¸äººå��ç§°

    private java.util.Date updateTime;//å®¡æ ¸æ—¶é—´
    
    private List<ZtcRoutePrice> ztcRoutePrices;
   
    private List<ZtcRouteSite> ztcRouteSites;
    
    private List<ZtcRouteAttachment> ztcRouteAttachments;
    
    private List<Attachment> carouselPictures;
    
    public void setId(String value){
        this.id = value;
    }
    public void setName(String value){
        this.name = value;
    }
    public void setRemark(String value){
        this.remark = value;
    }
    public void setStatus(java.lang.Integer value){
        this.status = value;
    }
    public void setExamineRemark(String value){
        this.examineRemark = value;
    }
    public void setUpdateRemark(String value){
        this.updateRemark = value;
    }
    public void setBeginValidateTime(java.util.Date value){
        this.beginValidateTime = value;
    }
    public void setEndValidateTime(java.util.Date value){
        this.endValidateTime = value;
    }
    public void setAddTime(java.util.Date value){
        this.addTime = value;
    }
    public void setExamineTime(java.util.Date value){
        this.examineTime = value;
    }
    public void setFkZtcTransportId(String fkZtcTransportId) {
		this.fkZtcTransportId = fkZtcTransportId;
	}
    public void setFkApplyUserId(String fkApplyUserId) {
		this.fkApplyUserId = fkApplyUserId;
	}
    public void setApplyUserName(String applyUserName) {
		this.applyUserName = applyUserName;
	}
	public void setApplyTime(java.util.Date applyTime) {
		this.applyTime = applyTime;
	}
    public void setZtcRoutePrices(List<ZtcRoutePrice> ztcRoutePrices) {
		this.ztcRoutePrices = ztcRoutePrices;
	}
    public void setZtcRouteSites(List<ZtcRouteSite> ztcRouteSites) {
		this.ztcRouteSites = ztcRouteSites;
	}
    public void setZtcRouteAttachments(List<ZtcRouteAttachment> ztcRouteAttachments) {
		this.ztcRouteAttachments = ztcRouteAttachments;
	}
    public void setFkExamineUserId(String fkExamineUserId) {
		this.fkExamineUserId = fkExamineUserId;
	}
    public void setExamineUserName(String examineUserName) {
		this.examineUserName = examineUserName;
	}
	public void setFkUpdateUserId(String fkUpdateUserId) {
		this.fkUpdateUserId = fkUpdateUserId;
	}
	public void setUpdateUserName(String updateUserName) {
		this.updateUserName = updateUserName;
	}
	public void setUpdateTime(java.util.Date updateTime) {
		this.updateTime = updateTime;
	}
	public void setCarouselPictures(List<Attachment> carouselPictures) {
		this.carouselPictures = carouselPictures;
	}
	@Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=false,nullable=false,insertable=true,updatable=true,length=10)
    public String getId(){
        return this.id;
    }
    @Column(name ="name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getName(){
        return this.name;
    }
    @Column(name ="remark",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
    public String getRemark(){
        return this.remark;
    }
    @Column(name ="status",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public java.lang.Integer getStatus(){
        return this.status;
    }
    @Column(name ="examine_remark",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
    public String getExamineRemark(){
        return this.examineRemark;
    }
    @Column(name ="update_remark",unique=false,nullable=true,insertable=true,updatable=true,length=2147483647)
    public String getUpdateRemark(){
        return this.updateRemark;
    }
    @Column(name ="begin_validate_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getBeginValidateTime(){
        return this.beginValidateTime;
    }
    @Column(name ="end_validate_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getEndValidateTime(){
        return this.endValidateTime;
    }
    @Column(name ="add_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getAddTime(){
        return this.addTime;
    }
	@Column(name ="fk_ztc_transport_id",unique=false,nullable=false,insertable=true,updatable=true,length=32)
	  public String getFkZtcTransportId() {
			return fkZtcTransportId;
		}
    @Column(name ="fk_apply_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getFkApplyUserId() {
		return fkApplyUserId;
	}
    @Column(name ="apply_user_name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getApplyUserName() {
		return applyUserName;
	}
    @Column(name ="apply_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getApplyTime() {
		return applyTime;
	}
    @Column(name ="fk_examine_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkExamineUserId() {
		return fkExamineUserId;
	}
    @Column(name ="examine_user_name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
	public String getExamineUserName() {
		return examineUserName;
	}
    @Column(name ="examine_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getExamineTime(){
        return this.examineTime;
    }
    @Column(name ="fk_update_user_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkUpdateUserId() {
		return fkUpdateUserId;
	}
    @Column(name ="update_user_name",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getUpdateUserName() {
		return updateUserName;
	}
    @Column(name ="update_time",unique=false,nullable=true,insertable=true,updatable=true,length=0)
    public java.util.Date getUpdateTime() {
		return updateTime;
	}
    @Transient
	public List<ZtcRoutePrice> getZtcRoutePrices() {
		return ztcRoutePrices;
	}
    @Transient
	public List<ZtcRouteSite> getZtcRouteSites() {
		return ztcRouteSites;
	}
    @Transient
	public List<ZtcRouteAttachment> getZtcRouteAttachments() {
		return ztcRouteAttachments;
	} 
    @Transient
    public List<Attachment> getCarouselPictures() {
		return carouselPictures;
	}
} 
